#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAbstractAnimation>
#include <QSequentialAnimationGroup>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void startAnimation();

    // 动画切换时会调用
    void onCurrentAnimationChanged(QAbstractAnimation *current);

private:
    Ui::MainWindow *ui;
    QSequentialAnimationGroup *m_pGroup;
};

#endif // MAINWINDOW_H
